//
//  YBHttpTool.h
//  Cocoachina
//
//  Created by 尚往文化 on 17/9/15.
//  Copyright © 2017年 YBing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <TFHpple.h>
#import "YBCacheTool.h"

@interface YBHttpTool : NSObject

+ (void)get:(NSString *)url success:(void(^)(TFHpple *doc))success failure:(void (^)(NSError *error))failure;
+ (void)get:(NSString *)url cacheType:(YBCacheType)cacheType success:(void(^)(TFHpple *doc))success failure:(void (^)(NSError *error))failure;

@end
